package com.jiawa.train.business.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

/**
 * <p>
 * 余票信息
 * </p>
 *
 * @author hrz
 * @since 2025-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("daily_train_ticket")
@ApiModel(value="DailyTrainTicket对象", description="余票信息")
public class DailyTrainTicket implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "日期")
    @TableField("`date`")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date date;

    @ApiModelProperty(value = "车次编号")
    private String trainCode;

    @ApiModelProperty(value = "出发站")
    @TableField("`start`")
    private String start;

    @ApiModelProperty(value = "出发站拼音")
    private String startPinyin;

    @ApiModelProperty(value = "出发时间")
    private LocalTime startTime;

    @ApiModelProperty(value = "出发站序|本站是整个车次的第几站")
    private Integer startIndex;

    @ApiModelProperty(value = "到达站")
    @TableField("`end`")
    private String end;

    @ApiModelProperty(value = "到达站拼音")
    private String endPinyin;

    @ApiModelProperty(value = "到站时间")
    private LocalTime endTime;

    @ApiModelProperty(value = "到站站序|本站是整个车次的第几站")
    private Integer endIndex;

    @ApiModelProperty(value = "一等座余票")
    private Integer ydz;

    @ApiModelProperty(value = "一等座票价")
    private BigDecimal ydzPrice;

    @ApiModelProperty(value = "二等座余票")
    private Integer edz;

    @ApiModelProperty(value = "二等座票价")
    private BigDecimal edzPrice;

    @ApiModelProperty(value = "软卧余票")
    private Integer rw;

    @ApiModelProperty(value = "软卧票价")
    private BigDecimal rwPrice;

    @ApiModelProperty(value = "硬卧余票")
    private Integer yw;

    @ApiModelProperty(value = "硬卧票价")
    private BigDecimal ywPrice;

    @ApiModelProperty(value = "新增时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
